package com.antdesignbackend.backend.news.noticeusers.service.impl;


import com.antdesignbackend.backend.news.noticeusers.entity.entityVo.NoticeUsersVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.news.noticeusers.mapper.NoticeUsersMapper;
import com.antdesignbackend.backend.news.noticeusers.entity.NoticeUsers;
import com.antdesignbackend.backend.news.noticeusers.service.NoticeUsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class NoticeUsersServiceImpl extends ServiceImpl<NoticeUsersMapper, NoticeUsers> implements NoticeUsersService {
    @Autowired
    NoticeUsersMapper noticeUsersMapper;

    @Override
    public List<NoticeUsersVo> search(QueryWrapper<NoticeUsersVo> wrapper, Page<NoticeUsersVo> page) {
        return noticeUsersMapper.search(wrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<NoticeUsersVo> wrapper) {
        return noticeUsersMapper.count(wrapper);
    }
}
